/*
* created by Administrator on 2018/11/30
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const session = require('koa-session');
const CONFIG = {
    key: 'koa:sess',
    // maxAge: 1000 * 60,
    overwrite: true,
    httpOnly: true,
    signed: true,
    rolling: true,
    renew: false
};
module.exports = app => {
    app.keys = ['xiongyi'];
    app.use(session(CONFIG, app));
};
